import { RouteRecordRaw } from "vue-router";

export const userRoutes: RouteRecordRaw[] = [
  {
    path: "/case-all",
    name: "/case-all",
    component: () => import("@/views/case-all/index.vue"),
    meta: {
      title: "案例列表"
    }
  },
  {
    path: "/case/overview",
    name: "/case/overview",
    component: () => import("@/views/case/overview/index.vue"),
    meta: {
      title: "案例概览"
    }
  },
  {
    path: "/case/import",
    name: "/case/import",
    component: () => import("@/views/case/import/index.vue"),
    meta: {
      title: "智能导入"
    }
  },
  {
    path: "/case/analysis",
    name: "/case/analysis",
    component: () => import("@/views/case/analysis/index.vue"),
    meta: {
      title: "数据分析"
    }
  },
  {
    path: "/case/simple",
    name: "/case/simple",
    component: () => import("@/views/case/simple/index.vue"),
    meta: {
      title: "简易分析"
    }
  },

  {
    path: "/:pathMatch(.*)*",
    redirect: "/case-all",
    meta: {
      title: "重定向"
    }
  }
];
